<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
<title>登陆成功页面</title>
<style type="text/css">
	p{
		text-align: center;
		width:100%;
		height:30px;
	}
</style>
</head>
<body >
<jsp:include page="Top.jsp"></jsp:include>
	<p>欢迎${user.uname}来到新闻页面。</p>
	<p style="text-indent: 2em; margin-top: 30px;">
系统将在 <span id="time">3</span> 秒钟后自动跳转至主页，如果未能跳转，<a href="index.jsp" title="点击访问">请点击</a>。</p>

<%--3秒跳转 --%>
<script type="text/javascript">  
	delayURL();   
    function delayURL() {
        var delay = document.getElementById("time").innerHTML;
 var t = setTimeout("delayURL()", 1000);
        if (delay > 0) {
            delay--;
            document.getElementById("time").innerHTML = delay;
        } else {
     		clearTimeout(t); 
            window.location.href = "index.jsp";
        }       
   }
</script>
	
	
<jsp:include page="foot.jsp"></jsp:include>
</body>
</html>

	
